package list.com.Test;

import java.time.LocalDateTime;

public class LocalDateTimeDemo {
    public static void main(String[] args) {
        //获取当前系统时间
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);

        LocalDateTime i = LocalDateTime.of(2001,11,11,11,11,11);
        int year = i.getYear();
        System.out.println(year);
        System.out.println(i);
    }
}
